//
//  CreditScreen.m
//  iSudoku
//
//  Created by Tri Vo on 5/18/13.
//  Copyright (c) 2013 Tri Vo. All rights reserved.
//

#import "CreditScreen.h"

@implementation CreditScreen

+ (id)scene {
    CCScene *scene = [CCScene node];
    CreditScreen *credit = [CreditScreen node];
    [scene addChild:credit];
    return scene;
}

- (void)dealloc {
    [super dealloc];
}

#pragma mark - Screen methods

- (void)onEnter {
    NSString *keyValue = [[GameUtils getInstance] getValueForKey:@"Game_About_Thanks"];
    [m_lblPowered setString:keyValue];
    // Contact
    keyValue = [[GameUtils getInstance] getValueForKey:@"Game_About_Contact"];
    [m_lblContact setString:keyValue];
    // Back
    keyValue = [[GameUtils getInstance] getValueForKey:@"Game_Back"];
    [m_btnBack setTitle:keyValue forState:CCControlStateNormal];
}


#pragma mark - Screen events

- (void) btnBack_Clicked {
    [[GameUtils getInstance] doBack];
}

@end
